package cn.li.org.mapper;

import cn.li.basic.mapper.BaseMapper;
import cn.li.basic.query.BaseQuery;
import cn.li.org.domain.Department;
import cn.li.org.domain.Employee;
import cn.li.org.query.DepartmentQuery;
import cn.li.org.query.EmployeeQuery;

import java.util.List;

/**
 * 数据层的接口
 */
public interface EmployeeMapper{
    //新增数据
    void save(Employee employee);
    //修改数据
    void update(Employee employee);
    //删除数据
    void delete(Long id);
    //查询单个记录
    Employee loadById(Long id);
    //查询全部数据
    List<Employee> loadAll();
    //查询总条数
    Long queryCount(EmployeeQuery query);
    //查询当前分页的数据
    List<Employee> queryData(EmployeeQuery query);
    //批量删除
    void batch(List<Long> ids);

}
